from sqlalchemy import Column,Integer,String,CHAR,Float

from models.base_db2 import Base, db


class captcha(Base):
    __tablename__ = 'captcha'
    id = Column(Integer,primary_key=True, autoincrement=True)
    captcha_number = Column(String(60), nullable=False,unique=True)
    title = Column(String(30), nullable=False)
    author = Column(String(20), default='佚名')
    char_sum = Column(Integer, default=0)
    create_time = Column(String(30))
    similar_rate = Column(Float, default=0)
